<template>
  <div class="box">
    <div class="box-title">促销模块</div>
    <div class="box-list flex">
      <div class="box-item flex" @click="handlerClick(item)" v-for="(item,index) in shopDataWay" :key="index">
        <div class="value">{{item.value}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      shopDataWay: [
        {
          value: "拼团活动",
          key: "pintuan",
         
        },
        {
          value: "秒杀活动",
          key: "seckill",
        
        },
        {
          value: "直播管理",
          key: "waitUpper",
       
        },
        {
          value: "直播商品",
          key: "waitAuth",
       
        },
        {
          value: "满额活动",
          key: "fullDiscount",
        
        },
        {
          value: "优惠券",
          key: "deliveredOrder",
        
        },
        {
          value: "分销商品",
          key: "deliveredOrder",
        
        },
        {
          value: "分销订单",
          key: "deliveredOrder",
        },
		{
			value: "加价购",
			key: "addGoodsOrder",
		}
      ],
    };
  },
 
  methods: {
	  handlerClick(val){
		uni.navigateTo({
			url:`/pages/goods/promotion/${val.key}/list`
		})
	  }
  },
  mounted() {},
};
</script>

<style lang="scss" scoped>
@import "@/pages/tabbar/home/template/styles.scss";
.box-item {
  width: 33%;
  margin: 20rpx 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  > .value {
    font-weight: bold;
    font-size: 32rpx;
    margin-bottom: 10rpx;
  }
  > .title {
    font-size: 24rpx;
    color: #999;
  }
}
.box-list {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
</style>